Skip to content

feat(scripts): Allow jest tests to run multiple platforms, scripts cleanup#4136

Open
JasonVMo wants to merge 5 commits into
mainfrom
user/jasonvmo/multi-tests
Open

feat(scripts): Allow jest tests to run multiple platforms, scripts cleanup#4136
JasonVMo wants to merge 5 commits into
mainfrom
user/jasonvmo/multi-tests

Conversation

@JasonVMo

@JasonVMo JasonVMo commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Platforms Impacted

  • test/script only change

Description of changes

This reworkes and cleans up the scripts/ package and allows jest tests to run on more than one platform. By default react-native tests will run on the platform specified by jestPlatform in the package.json (or 'ios') if not specified. But previously tests with a platform suffix like StackUtils.test.win32.ts wouldn't run because it wouldn't match the basic test file pattern.

Now the jest command will find all the test files in the folder, including those with module suffixes. If any module suffixes exist that differ from the default platform jest will run an additional pass against that target platform with those files selected.

This was originally part of a larger change which enables pinning tests for the existing components, including pinning/snapshotting across all relevant platforms.

Other changes

  • removed the build and depcheck commands from scripts, they were not part of any validation flows
  • removed depcheck references from package.json files.
  • moved all usages of projRoot to the newer pkgContext implementation.

Verification

  • automation

@JasonVMo JasonVMo requested review from Saadnajmi and acoates-ms June 29, 2026 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants